<?php defined('SYSPATH') or die('No direct script access.');

class Valid extends Kohana_Valid {
    public static function in_array($value, $values) {
        return in_array($value, $values);
    }
    
    public static function valid_date($value){
        $date = date('Y-m-d');
        if($date > $value){
           return false;
       }
       else{
           return true;
       }
    }
}
